ds/betterc/ds/stringz.d(36,34): Error: `@safe` constructor `betterc.ds.stringz.Stringz.this` cannot call `@system` function `core.stdc.stdlib.malloc` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(158,9): `core.stdc.stdlib.malloc` is declared here ds/betterc/ds/stringz.d(36,14): Error: cast from `void*` to `Payload*` not allowed in safe code ds/betterc/ds/stringz.d(40,34): Error: `@safe` constructor `betterc.ds.stringz.Stringz.this` cannot call `@system` function `core.stdc.stdlib.malloc` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(158,9): `core.stdc.stdlib.malloc` is declared here ds/betterc/ds/stringz.d(40,17): Error: cast from `void*` to `char*` not allowed in safe code ds/betterc/ds/stringz.d(41,23): Error: `src.ptr` cannot be used in `@safe` code, use `&src[0]` instead ds/betterc/ds/stringz.d(42,14): Error: safe function `betterc.ds.stringz.Stringz.this` cannot index pointer `(*this.payload).dst` ds/betterc/ds/stringz.d(69,8): Error: `@safe` destructor `betterc.ds.stringz.Stringz.~this` cannot call `@system` function `core.stdc.stdlib.free` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(164,9): `core.stdc.stdlib.free` is declared here ds/betterc/ds/stringz.d(70,8): Error: `@safe` destructor `betterc.ds.stringz.Stringz.~this` cannot call `@system` function `core.stdc.stdlib.free` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(164,9): `core.stdc.stdlib.free` is declared here io/betterc/io/file.d(46,34): Error: `@safe` constructor `betterc.io.file.File.this` cannot call `@system` function `core.stdc.stdlib.malloc` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(158,9): `core.stdc.stdlib.malloc` is declared here io/betterc/io/file.d(46,14): Error: cast from `void*` to `Payload*` not allowed in safe code io/betterc/io/file.d(61,34): Error: `@safe` constructor `betterc.io.file.File.this` cannot call `@system` function `core.stdc.stdlib.malloc` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(158,9): `core.stdc.stdlib.malloc` is declared here io/betterc/io/file.d(61,14): Error: cast from `void*` to `Payload*` not allowed in safe code io/betterc/io/file.d(63,22): Error: `@safe` constructor `betterc.io.file.File.this` cannot call `@system` function `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` ds/betterc/ds/stringz.d(84,19): `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` is declared here io/betterc/io/file.d(63,41): Error: `@safe` constructor `betterc.io.file.File.this` cannot call `@system` function `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` ds/betterc/ds/stringz.d(84,19): `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` is declared here io/betterc/io/file.d(63,21): Error: `@safe` constructor `betterc.io.file.File.this` cannot call `@system` function `core.stdc.stdio.fopen` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdio.d(1155,7): `core.stdc.stdio.fopen` is declared here io/betterc/io/file.d(91,8): Error: `@safe` destructor `betterc.io.file.File.~this` cannot call `@system` function `core.stdc.stdlib.free` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(164,9): `core.stdc.stdlib.free` is declared here io/betterc/io/file.d(104,24): Error: `@safe` function `betterc.io.file.File.reopen` cannot call `@system` function `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` ds/betterc/ds/stringz.d(84,19): `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` is declared here io/betterc/io/file.d(104,43): Error: `@safe` function `betterc.io.file.File.reopen` cannot call `@system` function `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` ds/betterc/ds/stringz.d(84,19): `betterc.ds.stringz.Stringz.opUnary!"*".opUnary` is declared here io/betterc/io/file.d(104,23): Error: `@safe` function `betterc.io.file.File.reopen` cannot call `@system` function `core.stdc.stdio.freopen` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdio.d(1157,7): `core.stdc.stdio.freopen` is declared here io/betterc/io/file.d(134,15): Error: `@safe` function `betterc.io.file.File.read` cannot call `@system` function `core.stdc.stdio.fread` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.